package cn.qn.enums;

/**
 * APP用户类型
 */
public enum SysMessageTypeEnum {

    SYS_NOTICE(1, "系统消息");

    private Integer code;

    private String desc;

    private SysMessageTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDesc(String code) {
        for (SysMessageTypeEnum enums : SysMessageTypeEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums.getDesc();
            }
        }
        return "其他";
    }
}
